﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace Wiki.Dal
{
    public class WikiMap : ClassMap<Wiki>
    {
        public WikiMap()
        {

            Id(x => x.Id).GeneratedBy.Assigned().Column("Id");
            Map(x => x.Keyword);
            Map(x => x.Title);
            Map(x => x.Answer);
            Map(x => x.AccountId);

        }
    }
    public class AccountMap : ClassMap<Account>
    {
        public AccountMap()
        {

            Id(x => x.Id).GeneratedBy.Assigned().Column("Id");
            Map(x => x.AccountName);
            Map(x => x.Password);
            

        }
    }
}
